using System;
using System.Collections.Generic;
using System.Text;

using OrbitOne.Base.Utils;

namespace OrbitOne.Feed.Domain {
    /// <summary>
    /// A class used for abstraction of either Owners or Authors
    /// </summary>
    public class Person {
        #region Members :
        private String _name;
        private String _email;
        #endregion Members 
        #region Ctor's :
        /// <summary>
        /// Initializes a new instance of the <see cref="T:Person"/> class.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <param name="email">The email.</param>
        public Person(String name, String email) {
            ArgumentValidation.ArgumentNotNull("name", name);
            ArgumentValidation.ArgumentNotNull("email", email);
            this.Name = name;
            this.Email = email;
        }
        #endregion Ctor's 
        #region Properties :
        /// <summary>
        /// The email of the author
        /// </summary>
        public String Email {
            get { return _email; }
            set {
                ArgumentValidation.ArgumentNotNull("email", value);
                _email = value; 
            }
        }
        /// <summary>
        /// The name of the author.
        /// </summary>
        /// <value>The name.</value>
        public String Name {
            get { return _name; }
            set {
                ArgumentValidation.ArgumentNotNull("name", value);
                _name = value; 
            }
        }
        #endregion Properties 
    }
}
